package qlhr.com.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import qlhr.com.common.utils.EasyUIResult;
import qlhr.com.common.utils.JsonUtils;
import qlhr.com.pojo.TbItem;
import qlhr.com.service.TbItemService;

@Controller
public class TbItemController {
	
	@Autowired
	private TbItemService tbItemService;
	
	@RequestMapping("/item/list")
	@ResponseBody
	public String pageQuery(Integer page, Integer rows) {
		EasyUIResult result = tbItemService.findPageQuery(page, rows);
		return JsonUtils.objectToJson(result);
	}

}
